package com.bill99.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class EmailProperties {

    @Value("${email.send.subject}")
    private String subject;
    @Value("${email.send.product}")
    private String product;
    @Value("${email.send.type}")
    private String type;
    @Value("${email.send.level}")
    private String level;
    @Value("${email.send.keyword}")
    private String keyword;
    @Value("${email.send.desc}")
    private String desc;
    @Value("${email.send.templateId}")
    private String templateId;
    @Value("${email.send.proposal}")
    private String proposal;
    @Value("${email.send.attachmentsPrefix}")
    private String attachmentsPrefix;
    @Value("${email.send.emailAddresses}")
    private String emailAddresses;
    @Value("${email.send.interfaceUrl}")
    private String interfaceUrl;

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getProposal() {
        return proposal;
    }

    public void setProposal(String proposal) {
        this.proposal = proposal;
    }

    public String getAttachmentsPrefix() {
        return attachmentsPrefix;
    }

    public void setAttachmentsPrefix(String attachmentsPrefix) {
        this.attachmentsPrefix = attachmentsPrefix;
    }

    public String getEmailAddresses() {
        return emailAddresses;
    }

    public void setEmailAddresses(String emailAddresses) {
        this.emailAddresses = emailAddresses;
    }

    public String getInterfaceUrl() {
        return interfaceUrl;
    }

    public void setInterfaceUrl(String interfaceUrl) {
        this.interfaceUrl = interfaceUrl;
    }

    @Override
    public String toString() {
        return "EmailProperties{" +
                "subject='" + subject + '\'' +
                ", product='" + product + '\'' +
                ", type='" + type + '\'' +
                ", level='" + level + '\'' +
                ", keyword='" + keyword + '\'' +
                ", desc='" + desc + '\'' +
                ", templateId='" + templateId + '\'' +
                ", proposal='" + proposal + '\'' +
                ", attachmentsPrefix='" + attachmentsPrefix + '\'' +
                ", emailAddresses='" + emailAddresses + '\'' +
                ", interfaceUrl='" + interfaceUrl + '\'' +
                '}';
    }
}